﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HardMobTopicInfo;
using System.Data.Entity.ModelConfiguration;
using HardMobCommons;
using HardMobCommons.Entidades;

namespace HardMobInfra.Mapeamentos
{
	internal class TopicoConfiguration : EntityTypeConfiguration<Topico>
	{
		public TopicoConfiguration()
		{
			ToTable("Topicos");
			HasKey(t => t.ID);

			Property(t => t.Nome).IsRequired();
			Property(t => t.URL).IsRequired();
		}

	}
}
